import Axios from 'axios'

export default {
	/**
	 * @description 删除基础题库列表
	 * @param id 删除列表的id值
	 */
	questionsIdDel: id => {
		return Axios.delete('/questions/' + id)
	},
	/**
	 * @description 添加试题
	 */
	addQuestions: params => Axios.post('/questions', params),
	/**
	 * @description 获取单个试题详情
	 */
	getQuestionDetails: id => Axios.get(`/questions/${id}`),
	/**
	 * @description 请求基础题库分页列表数据
	 */
	questiAxios: params => {
		return Axios.get('/questions', { params })
	},
	/**
	 * @description
	 */
	questState: params => {
		return Axios.post('/questions/check', params)
	},
	/**
	 * @description 提交修改试题信息
	 * @id 修改的试题的id
	 */
	putQuestions: params => Axios.put(`/questions`, params)
}
